import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'

Vue.use(Vuex);

var store = new Vuex.Store({
    state:{
        loginInf:{},
        islogin:"wait",
        term:null,
    },
    mutations:{
        setIsLogin:function(state,value){
            state.loginInf = value;
            state.islogin = true
        },
        setnotlogin:function(state,value){
            state.islogin = false
        },
        settuiLogin:function(state,value){
            state.loginInf = "";
            state.islogin = false;
        },
        setIsLoginwait:function(state,value){
            state.islogin = "wait"
        },
        setTerm:function(state,value){
            state.term = value;
        }
    }
})

export default store;